/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/19/2010                        
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define MatHangResult object. This object used to contain data that returned from data layer.
    /// </summary>
    public class MatHangResult
    {
        #region fields
        private string maMatHang;
        private string tenLoaiMatHang;
        private int maLoaiHangHoa;
        private string tenMatHang;
        private int maNuocSanXuat;
        private string hieu;
        private string ghiChu;
        private int order;
        private Boolean isPublished;
        private string createdBy;
        private DateTime createdDate;
        private string lastUpdatedBy;
        private DateTime lastUpdatedDate;
        private int dVT;

        private int maXe;       
        private string maPhuTung;
        private string curencyCode;

        #endregion fields

        #region properties


        public string CurencyCode
        {
            get { return this.curencyCode; }
            set { this.curencyCode = value; }
        }

        public int MaXe
        {
            get { return this.maXe; }
            set { this.maXe = value; }
        }

        public string MaPhuTung
        {
            get { return this.maPhuTung; }
            set { this.maPhuTung = value; }
        }

        /// <summary>
        /// Define MaMatHang Property.
        /// </summary>
        public string MaMatHang
        {
            get { return this.maMatHang; }
            set { this.maMatHang = value; }
        }
        /// <summary>
        /// Define MaLoaiHangHoa Property.
        /// </summary>
        public int MaLoaiHangHoa
        {
            get { return this.maLoaiHangHoa; }
            set { this.maLoaiHangHoa = value; }
        }
        public string TenLoaiMatHang
        {
            get { return this.tenLoaiMatHang; }
            set { this.tenLoaiMatHang = value; }
        }
        /// <summary>
        /// Define TenMatHang Property.
        /// </summary>
        public string TenMatHang
        {
            get { return this.tenMatHang; }
            set { this.tenMatHang = value; }
        }
        /// <summary>
        /// Define MaNuocSanXuat Property.
        /// </summary>
        public int MaNuocSanXuat
        {
            get { return this.maNuocSanXuat; }
            set { this.maNuocSanXuat = value; }
        }
        /// <summary>
        /// Define Hieu Property.
        /// </summary>
        public string Hieu
        {
            get { return this.hieu; }
            set { this.hieu = value; }
        }
        /// <summary>
        /// Define GhiChu Property.
        /// </summary>
        public string GhiChu
        {
            get { return this.ghiChu; }
            set { this.ghiChu = value; }
        }
        /// <summary>
        /// Define Order Property.
        /// </summary>
        public int Order
        {
            get { return this.order; }
            set { this.order = value; }
        }
        /// <summary>
        /// Define IsPublished Property.
        /// </summary>
        public Boolean IsPublished
        {
            get { return this.isPublished; }
            set { this.isPublished = value; }
        }
        /// <summary>
        /// Define CreatedBy Property.
        /// </summary>
        public string CreatedBy
        {
            get { return this.createdBy; }
            set { this.createdBy = value; }
        }
        /// <summary>
        /// Define CreatedDate Property.
        /// </summary>
        public DateTime CreatedDate
        {
            get { return this.createdDate; }
            set { this.createdDate = value; }
        }
        /// <summary>
        /// Define LastUpdatedBy Property.
        /// </summary>
        public string LastUpdatedBy
        {
            get { return this.lastUpdatedBy; }
            set { this.lastUpdatedBy = value; }
        }
        /// <summary>
        /// Define LastUpdatedDate Property.
        /// </summary>
        public DateTime LastUpdatedDate
        {
            get { return this.lastUpdatedDate; }
            set { this.lastUpdatedDate = value; }
        }
        /// <summary>
        /// Define dVT Property
        /// </summary>
        public int DVT
        {
            get { return this.dVT; }
            set { this.dVT = value; }
        }
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for MatHangResultResult Object.
        /// </summary>
        public MatHangResult()
        {
            this.dVT = int.MinValue;
            this.maMatHang = string.Empty;
            this.maLoaiHangHoa = int.MinValue;
            this.tenMatHang = string.Empty;
            this.maNuocSanXuat = int.MinValue;
            this.hieu = string.Empty;
            this.ghiChu = string.Empty;
            this.order = int.MinValue;
            this.isPublished = true;
            this.createdBy = string.Empty;
            this.createdDate = DateTime.MinValue;
            this.lastUpdatedBy = string.Empty;
            this.lastUpdatedDate = DateTime.MinValue;
            this.tenLoaiMatHang = string.Empty;
        }
        /// <summary>
        /// Define constructor for MatHangResultResult Object.
        /// </summary>
        public MatHangResult(string maMatHang,
                    int maLoaiHangHoa,
                    string tenMatHang,
                    int maNuocSanXuat,
                    string hieu,
                    string ghiChu,
                    int order,
                    Boolean isPublished,
                    string createdBy,
                    DateTime createdDate,
                    string lastUpdatedBy,
                    DateTime lastUpdatedDate)
        {
            this.maMatHang = maMatHang;
            this.maLoaiHangHoa = maLoaiHangHoa;
            this.tenMatHang = tenMatHang;
            this.maNuocSanXuat = maNuocSanXuat;
            this.hieu = hieu;
            this.ghiChu = ghiChu;
            this.order = order;
            this.isPublished = isPublished;
            this.createdBy = createdBy;
            this.createdDate = createdDate;
            this.lastUpdatedBy = lastUpdatedBy;
            this.lastUpdatedDate = lastUpdatedDate;
        }
        #endregion constructor
    }
}